package com.citicpub_cloud.restfull.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.citicpub_cloud.restfull.dao.core.TbBookInfo;

public class TbBookInfoMapper implements RowMapper<TbBookInfo> {  
	@Override
	public TbBookInfo mapRow(ResultSet rs, int index) throws SQLException {
		TbBookInfo obj = new TbBookInfo();
		obj.setBookName(rs.getString("book_name"));
		obj.setImg(rs.getString("img"));
		obj.setFileUrl(rs.getString("fileurl"));
		obj.setFileSize(rs.getLong("url_size"));
		return obj;
	}
}